package router;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 
 * @author zgy
 *
 */
@Controller
@RequestMapping(value = "zcAdminRouter")
public class ZcAdminRouter {

	private static Logger logger = Logger.getLogger(ZcAdminRouter.class);

	@RequestMapping
	public String router(@RequestParam(value="funcID",defaultValue = "0000") String funcID) {
		
		if(funcID.equals("0041")) {
			//logger.info("[transactionRouter]" + funcID + " 快递员登录 ");
			return "forward:transaction2zc/adminLogin";
		}else if(funcID.equals("0042")) {
			//logger.info("[transactionRouter]" + funcID + " 配送订单查询 ");
			return "forward:transaction2zc/zcSendItemQuery";
		}else if(funcID.equals("0043")) {
			//logger.info("[transactionRouter]" + funcID + " 配送订单查询userMp ");
			return "forward:transaction2zc/zcSendItemQueryByMp";
		}else if(funcID.equals("0044")) {
			//logger.info("[transactionRouter]" + funcID + " 结束订单 ");
			return "forward:transaction2zc/zcSendItemEnd";
		}else {
			logger.info("no such funcID existed");
			return "forward:error";
		}
	}
}